N4 Transactions and Groovy

The following diagram shows the transaction behavior that N4 inherits from Hibernate. Whenever a flush is called in the transaction, it triggers an update or insert to the database (if there are any inserts or updates in the memory since the last flush). As a part of this process, N4 calls any life cycle interceptors (code extensions) defined for the changed entities.

 

Flush Issues

The Life Cycle Interceptor (LCI) code should be tolerant of multiple invocations in a single transaction.

 

Understanding Transaction Boundaries

You must understand: